import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "login",
    component: () => import("../pages/login/index.vue")
  },
  {
    path: "/register",
    name: "register",
    component: () => import("../pages/register/index.vue")
  },
  {
    path: '/home',
    name: "home",
    component: () => import("../pages/home/index.vue")
  },
  {
    path: '/help',
    name: 'help',
    component: () => import("../pages/help/index.vue")
  },
  {
    path: '/test',
    name: "home",
    component: () => import("../pages/home/test.vue")
  },
  {
    path: '/tree',
    name: 'tree',
    component: () => import("../pages/home/tree.vue")
  },
  {
    path: '/wps',
    name: 'wps',
    component: () => import("../pages/home/wps.vue")
  },
  {
    path: '/for',
    name: 'for',
    component: () => import("../pages/home/for.vue")
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;
